import lgxcom from "./common";
import fillinfo from "./struct/fillinfo";
import {LGXEnums} from "./sysenum";
var GlobalVar = {}

GlobalVar.disLineWidth = false;//显示线宽
GlobalVar.disgrid = false;//显示网格
GlobalVar.defaultLineWidth = 2;

GlobalVar.backcolor = new lgxcom.LGXColor();
GlobalVar.backcolor.setVal(255,255,255,255);
// GlobalVar.backcolor.setVal(0,0,0,255);
GlobalVar.highlightColor = new lgxcom.LGXColor();
// GlobalVar.highlightColor.setVal(0xff,0xFF,0x27);
GlobalVar.highlightColor.setVal(0,255,0);

GlobalVar.easySelMode = false;//简易拾取模式，用于非专业模式下，拾取矩形、多边形等封闭区域
GlobalVar.lineVisionType = 'cross';//线路是否默认正交修改？autocad模式下'straight'，viso模式下'cross',xmind下'curve'

GlobalVar.fontInfo = new lgxcom.LGXFontInfo();
GlobalVar.fillInfo = new fillinfo.LGXFillDefInfo();
GlobalVar.fillInfo.fillStyle = LGXEnums.LGXFillStyle.SOLID;
GlobalVar.fillInfo.fillColor.setVal(128,128,128);
GlobalVar.lineInfo = new lgxcom.LGXLineDefInfo();
GlobalVar.lineInfo.color.setVal(91,155,213,255);

GlobalVar.arcPlotMode = LGXEnums.ArcPlotMode.Point3Mode;

GlobalVar.runningMode = 'none';
GlobalVar.editMode = "autocad";

GlobalVar.visoDefaultFillColor = new lgxcom.LGXColor();
GlobalVar.visoDefaultFillColor.setVal(91,155,213,255);



export{GlobalVar}

